﻿// See https://aka.ms/new-console-template for more information
using QskjFileWatermark.Service;

Console.WriteLine("Hello, World!");
Task.Factory.StartNew(() =>
{
    try
    {
        while (true)
        {
            FileAddWatermark.GetFileUrl();
            //{
            //    string localFilePath = AppDomain.CurrentDomain.BaseDirectory + "video20240911.mp4", watermarkFilePath = AppDomain.CurrentDomain.BaseDirectory + $@"videoFileWatermark_{DateTime.Now.ToString("yyyyMMddHHmmss")}" + "video20240911.mp4";
            //    FileAddWatermark.AddTextWatermark(localFilePath, watermarkFilePath, "强生科技");
            //}
            Thread.Sleep(1000 * 3);
        }
    }
    catch (Exception e)
    {
        Console.WriteLine("qskj视频水印处理异常" + e);
    }
});
while (true)
{
    Thread.Sleep(5000);
}
